
/****** Object:  Table [dbo].[NotarialFormNumber]    Script Date: 08/28/2011 21:38:55 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[NotarialFormNumber](
	[Id] [int] IDENTITY(1,1) NOT NULL,
	[Name] [varchar](50) NOT NULL,
	[OrderId] [int] NOT NULL,
 CONSTRAINT [PK_NotarialFormNumber] PRIMARY KEY CLUSTERED 
(
	[Id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[NotarialFormNumber]  WITH CHECK ADD  CONSTRAINT [FK_NotarialFormNumber_Order] FOREIGN KEY([OrderId])
REFERENCES [dbo].[Order] ([Id])
GO

ALTER TABLE [dbo].[NotarialFormNumber] CHECK CONSTRAINT [FK_NotarialFormNumber_Order]
GO


